import {Routes, RouterModule} from '@angular/router';
import {ModuleWithProviders} from '@angular/core';
import {KeywordComponent} from "./keyword.component";
import {AddComponent} from './add/add.component';
import {UserComponent} from './user/user.component';
import {HotComponent} from './hot/hot.component';

export const routes: Routes = [
    {
        path: 'list',
        component: KeywordComponent,
        children: []
    },
    {
        path: 'add',
        component: AddComponent,
        children: []
    },
    {
      path: 'user',
      component: UserComponent,
      children: []
    },
  {
    path: 'hot',
    component: HotComponent,
    children: []
  }
];

export const routing: ModuleWithProviders = RouterModule.forChild(routes);
